<template>
	<div class="uhead">
		<div class="you">
			<img src="../../../../public/images/ly1_1.png" @click="fh()" >
		</div>
		<div class="xbox">
			<div class="uhead-left">
			</div>
			<div class="uhead-right">
				<h4>{{zzx}}</h4>
				<img src="../../../../public/images/ly1_2.png" >
			</div>
			<div class="uhead-rightbottom">
				<div class="bottom1">
					<img src="../../../../public/images/ly1_4.png" >1
				</div>
				<span>普陀山</span>
			</div>
			<div class="uhead-rightbottom2">
				<img src="../../../../public/images/ly1_5.png" >
				<span>普通会员</span>
			</div>
		</div>
		<div class="xbox2">
			<h4>未获得</h4>
			<img src="../../../../public/igs/u1_5.png" >
			<div class="minbox">
				<p>游侠风户外会员</p>
				<p>全站200+户外线路免费畅玩</p>
			</div>
			<p class="p1">立即开通<i class="iconfont">&#xe633;</i></p>
		</div>
	</div>
</template>

<script>
	import Cookies from 'js-cookie';
	export default{
		name:'Lyhead',
		data(){
			return{
				zzx:''
			}
		},
		mounted() {
			this.zzx=Cookies.get('uname')
		},
		methods:{
			fh(){
				Cookies.remove('uname')
				this.$router.push('/')
			}
		}
	}
</script>

<style>
	.uhead{
		/* position: relative; */
		width: 100%;
		height: 4.01rem;
		background-size: 100%;
		border-radius:  0 0 0.1rem 0.1rem;
		background-image: url(../../../../public/igs/u1_1.png);
	}
	.uhead .you{
		position: absolute;
		top: 0.3rem;
		right: 0rem;
	}
	.uhead .you img{
		width: 60%;
		height: 60%;
		background-size: 100%;
	}
	.uhead .xbox{
		position: absolute;
		left: 0.45rem;
		top: 0.8rem;
		display: flex;
		align-items: center;
	}
	.uhead .uhead-left{
		background-image: url(../../../../public/igs/u1_2.png);
		width: 1.6rem;
		height: 1.6rem;
		border-radius: 50%;
		margin-right: 0.25rem;
		background-size: 100%;
	}
	.uhead .uhead-right h4{
		margin-top: -0.5rem;
		width: 90%;
		position: relative;
		font-size: 0.58rem;
		font-weight: bold;
		color: #000;
		/* 一行文字省略号: 省略号+溢出隐藏+禁止换行 [超出宽度溢出隐藏且同省略号代替] */
		overflow: hidden;
		text-overflow: ellipsis;  /* 省略号 */
		white-space: nowrap; /* 禁止换行 */
	}
	.uhead .uhead-right img{
		position: absolute;
		width: 9%;
		height: 35%;
		background-size: 100%;
		top: 0.27rem;
		left: 5.7rem;
	}
	.uhead .uhead-rightbottom{
		display: flex;
		width: 34%;
		height: 0.38rem;
		border-radius: 0.2rem;
		margin-top: 0.3rem;
		background-color: #000000;
		position: absolute;
		top: 0.74rem;
		left: 2rem;
	}
	.uhead .uhead-rightbottom .bottom1{
		border-radius: 0.2rem 0 0 0.2rem;
		background: url(../../../../public/images/ly1_3.png);
		background-size: 100% 100%;
		width: 45%;
		height: 0.38rem;
		color: #cc864d;
		font-size: 0.3rem;
		background-color: black;
	}
	.uhead .uhead-rightbottom .bottom1 img{
		width: 40%;
		height: 70%;
		margin-top: 0.05rem;
		margin-left: 0.2rem;
		background-size: 100%;
	}
	.uhead .uhead-rightbottom span{
		display: block;
		color: #cc864d;
		margin-top: 0.03rem;
	}
	.uhead .uhead-rightbottom2{
		display: flex;
		width: 33%;
		height: 0.4rem;
		border-radius: 0.2rem;
		margin-top: 0.3rem;
		background-color: #fff2b3;
		position: absolute;
		top: 0.74rem;
		left: 4.2rem;
		line-height: 0.4rem;
		padding-left: 0.1rem;
	}
	.uhead .xbox2{
		display: flex;
		align-items: center;
		position: relative;
		top: 2.9rem;
		margin: auto;
		background-image: url(../../../../public/igs/u1_4.png);
		width: 9.43rem;
		height: 1.65rem;
		background-size: 100% 100%;
	}
	.uhead .xbox2 h4{
		position: absolute;
		top: 0;
		left: 0;
		width: 1.2rem;
		height: 0.48rem;
		color: white;
		line-height: 0.48rem;
		text-align: center;
		border-radius: 0.2rem 0 0.2rem 0;
		background-color: #c2c2c2;
	}
	.uhead .xbox2 img{
		width: 1.38rem;
		height: 0.91rem;
		padding-top: 0.1rem;
		margin-left: 0.32rem;
		background-size: 100%;
	}
	.uhead .xbox2 p:first-child{
		font-size: 0.37rem;
		color: #fef6a2;
		padding-left: 0.2rem;
		margin-top: 0.15rem;
	}
	.uhead .xbox2 p:nth-child(2){
		font-size: 0.27rem;
		color: #fef6a2;
		margin-top: 0.2rem;
		padding-left: 0.2rem;
	}
	.uhead .xbox2 .p1{
		position: absolute;
		line-height: 0.55rem;
		top: 0.3rem;
		right: 0.3rem;
		width: 1.8rem;
		height: 0.55rem;
		text-align: center;
		border-radius: 0.3rem;
		background: linear-gradient(270deg, #FFE494, #FEF6A2);
	}
	.uhead .xbox2 p i{
		font-size: 0.1rem;
		color: #000000;
		font-weight: bold;
	}
</style>
